home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_gen_whipcam.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
2KB
|
99 lines
# Jones 3D Cog Script
#
# gen_whip cam.cog
#
# Generic whip swing camera offset Script
#
# [CMG]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
#..................MESSAGES................
message damaged
message startup
#..................ACTORS................
thing player local
#..................CAMERAS................
thing swingCam
#..................PROPS................
thing whipstrut
#..................SOUNDS................
sound sndFalling=gen_fallingrock_c.wav local
sound music=mus_gen_indywhip1.wav local
#..................VARIABLES................
int curCam local
int solidCHEN=0 local
end
# ========================================================================================
code
startup:
player=GetLocalPlayerThing();
return;
# ========================================================================================
damaged:
if ((GetSenderRef() == whipstrut) && (GetParam(1) == 0x10))
{
# Indy whips across the gap...
# Prep...
StartCutScene(1);
SetActorFlags(player, 0x200000);
#curCam = GetCurrentCamera();
SetCameraPosInterp(2, 0); # kill dolly
SetCameraLookInterp(2, 0); # kill pan & tilt
Sleep(1.0);
# move cam to known position with a wide angle
#SetExtCamOffsetToThing(swingCam);
SetCameraFocus(2, swingCam);
SetCameraSecondaryFocus(2, player);
SetcurrentCamera(2);
SetCameraFOV(100, 1, 1.0);
Sleep(1.0);
# play music if it hasn't played already
If (solidCHEN == 0)
{
PlaySoundLocal(music, 1.0, 0.0, 0x0, 0);
solidCHEN = 1;
}
# sound and object creation for collapsing whip strut
PlaySoundLocal(sndFalling, 1.0, 0.0, 0x0, 0);
Sleep(0.5);
SetCameraFOV(90, 0, 0.0);
SetCameraPosition(1, GetThingPos(swingCam));
SetCurrentCamera(1);
#RestoreExtCam();
SetCameraFOV(90, 1, 0.25);
Sleep(2.0);
ClearActorFlags(player, 0x200000);
EndCutScene();
}
return;
# ========================================================================================
end